import request from '@/api/request.js'

// 用户名密码登录
export function login(data) {
	return request({
		url: '/user/login',
		method: 'post',
		headers: {
		  isToken: "1"
		},
		data:data
	})
}


// 退出登录
export function logout() {
	return request({
		url: '/user/logout',
		method: 'post',
		headers: {
		  isToken: "0"
		}
	})
}

